Chip reset control and status
HAD_POR | Last reset was from the power-on reset or brown-out detection blocks |
HAD_RUN | Last reset was from the RUN pin |
HAD_PSM_RESTART | Last reset was from the debug port |
PSM_RESTART_FLAG | This is set by psm_restart from the debugger. Its purpose is to branch bootcode to a safe mode when the debugger has issued a psm_restart in order to recover from a boot lock-up. In the safe mode the debugger can repair the boot code, clear this flag then reboot the processor. |